package com.youlai.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.youlai.system.model.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.system.model.form.ProductFrom;
import com.youlai.system.model.query.ProductPageQuery;
import com.youlai.system.model.vo.ProductPageVo;

import java.util.List;

/**
* @author zzps
* @description 针对表【t_product(商品表)】的数据库操作Service
* @createDate 2024-03-11 22:24:49
*/
public interface ProductService extends IService<Product> {

    IPage<ProductPageVo> getProductPageList(ProductPageQuery productPageQuery);

    boolean addProduct(ProductFrom productForm);

    boolean batchDeleteProduct(List<Long> ids);

    boolean upOrDownProduct(Long id, Integer status);

    boolean deleteProduct(Long id);

    boolean updateProduct(ProductFrom productForm);

    ProductPageVo getProductById(Long id);
}
